/*
 * ProxyClient_ProxyBiz銆俲ava
 *
 * Created Date: 2014骞�2鏈�鏃� *				
 * Copyright (c)  Centling Technologies Co., Ltd.
 *
 * This software is the confidential and proprietary information of
 *  Centling Technologies Co., Ltd. ("Confidential Information"). You shall not
 * disclose such Confidential Information and shall use it only in accordance
 * with the terms of the license agreement you entered into with
 * Centling Technologies Co., Ltd.
 */

package com.centling.bluecollar.customer.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * @author centling
 * @version  <br>
 * <p>绫荤殑鎻忚堪</p>
 */
@Entity
@Table(name="proxyclient_proxybiz")
public class ProxyClient_ProxyBiz {
	private String id;
	private ProxyClient proxyClient;
	private ProxyBusiness proxyBusiness;
	
	/**
	 * @return the id
	 */
	@GenericGenerator(name = "idGenerator", strategy = "uuid")
	@Id
	@GeneratedValue(generator = "idGenerator")
	@Column(name = "id", unique = true, nullable = false, length = 50)
	public String getId() {
	
		return id;
	}
	
	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
	
		this.id = id;
	}
	
	/**
	 * @return the proxyClient
	 */
	@ManyToOne(fetch=FetchType.EAGER)
	@JoinColumn(name="proxyclientId")
	public ProxyClient getProxyClient() {
	
		return proxyClient;
	}
	
	/**
	 * @param proxyClient the proxyClient to set
	 */
	public void setProxyClient(ProxyClient proxyClient) {
	
		this.proxyClient = proxyClient;
	}
	
	/**
	 * @return the proxyBusiness
	 */
	@ManyToOne(fetch=FetchType.EAGER)
	@JoinColumn(name="proxyBizId")
	public ProxyBusiness getProxyBusiness() {
	
		return proxyBusiness;
	}
	
	/**
	 * @param proxyBusiness the proxyBusiness to set
	 */
	public void setProxyBusiness(ProxyBusiness proxyBusiness) {
	
		this.proxyBusiness = proxyBusiness;
	}
	
	
	
}
